package com.jt.controller;

import com.jt.pojo.OperationLog;
import com.jt.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @PostMapping
    public void  doInsertLog(@RequestBody OperationLog log){
        logService.insertLog(log);
    }
}
